#include <stdio.h>
int main(){
    int n=0,m=0;
    printf("how many numbers?");
    scanf("%d",&n);
    printf("input %d numbers:",n);
    int num[n];
    int *p[n];
    for(int i=0;i<n;i++){
    scanf("%d",&num[i]);
    }
    for(int i=0;i<n;i++){
    p[i]=&num[i];
    }
    printf("\nhow many place you want move?");
    scanf("%d",&m);
    for(int i=n-m;i<n;i++){
        for(int j=i;j>i-n+m;j--){
            int temp=0;
            temp=*p[j];
            *p[j]=*p[j-1];
            *p[j-1]=temp;
        }
    }
    printf("Now,they are:\n");
    for(int i=0;i<n;i++){
    printf("%d",*p[i]);
    if(i!=n-1){
        printf("  ");
    }
    }
}